<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
<tiles:importAttribute/>
	<div id="${PORTLET_INSTANCE_ID}" style="height:280px">
		<!-- Include portlet content in file securitized_inventory_content.jsp  -->
		<div id="dataTableContent" >
		
		</div>
		<input id="rss_url" type="text" value=""/>
		<button id="SubscribeRSS">Subscribe RSS</button>
		<button id="GetRSS">Get RSS</button>
	</div>
	<script type="text/javascript">
	<!--
		$(function() {
			var url = '${pageContext.request.contextPath}/goal/rssReader!createRSSLocalXmlFile.action';
			$('#SubscribeRSS').click(function(){
				$.ajax({
					   type: "POST",
					   url: url,
					   data: "rssUrl=" + $("#rss_url").val(),
					   dataType: "html",
					   success: function(html){
					     
					   }
					});
			});
			
			$('#GetRSS').click(function(){
				var url = '${pageContext.request.contextPath}/goal/rssReader.action';
				$.ajax({
					   type: "POST",
					   url: url,
					   data: "rssName=联合早报网 zaobao.com - 中国新闻",
					   dataType: "html",
					   success: function(html){
						   $('#dataTableContent').html(html);
					   }
					});
			});
		});

	//-->
	</script>
